import request from '@/utils/request'

// 查询计件统计列表
export function listPieceworkSta(query) {
  return request({
    url: '/hr/pieceworkSta/list',
    method: 'get',
    params: query
  })
}

// 查询计件统计详细
export function getPieceworkSta(id) {
  return request({
    url: '/hr/pieceworkSta/' + id,
    method: 'get'
  })
}
// 查询计件统计详细
export function jjstatistics() {
  return request({
    url: '/hr/pieceworkSta/jjstatistics',
    method: 'get'
  })
}

// 新增计件统计
export function addPieceworkSta(data) {
  return request({
    url: '/hr/pieceworkSta',
    method: 'post',
    data: data
  })
}

// 修改计件统计
export function updatePieceworkSta(data) {
  return request({
    url: '/hr/pieceworkSta',
    method: 'put',
    data: data
  })
}

// 删除计件统计
export function delPieceworkSta(id) {
  return request({
    url: '/hr/pieceworkSta/' + id,
    method: 'delete'
  })
}
